package cn.zl.ymcc.service.impl;

import cn.zl.ymcc.CourseEsRep.CourseESRep;
import cn.zl.ymcc.doc.CourseDoc;
import cn.zl.ymcc.service.ESCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ESCourseServiceImpl implements ESCourseService {
    @Autowired
    private CourseESRep courseESRep;
    @Override
    public void save(List<CourseDoc> list) {

        if ( !list.isEmpty()){
            courseESRep.saveAll(list);
        }
    }
}
